{% extends "fronted/base.html" %}

{% block main %}
    <div class="box box-primary" style="width: 70%; float: left;">
        <div class="box-body table-responsive">
            {{ private.problem.description_html|safe }}
        </div>
    </div>
    <div class="box box-primary" style="width: 28%; float: right;">
        <div class="box-header with-border"><a href="{{ url_for("fronted.discuss_board", board_name = "题目#" ~ private.problem.id, page = 1) }}"><h3 class="box-title">进入讨论版</h3></a></div>
    </div>
    <div class="box box-primary" style="width: 28%; float: right;">
        <div class="box-header with-border"><a href="{{ url_for("fronted.problem_answer", problem_id = private.problem.id) }}"><h3 class="box-title">查看题解</h3></a></div>
    </div>
    <div class="box box-primary" style="width: 100%; float: left;">
        <div class="box-header with-border"><h3 class="box-title">提交代码</h3></div>
        <div class="box-body table-responsive">
            {% if wrong %}
                <div class="callout callout-danger">
                        <p>{{ wrong }}</p>
                    </div>
            {% endif %}
            <form action="" method="post">
                <div class="form-group">
                    <label>语言</label>
                    <select class="form-control" name="language">
                        <option>cpp</option>
                        <option>c</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>源代码</label>
                    <textarea class="form-control" rows="10" name="code" placeholder="源代码"></textarea>
                </div>
                <div class="row">
                    <div class="col-xs-4" style="float: left;">
                        <button type="submit" class="btn btn-primary btn-block btn-flat">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
{% endblock %}